import requests

class LoginAPI:

    def __init__(self):
        self.url_login = "http://ihrm-test.itheima.net/api/sys/login"

    def login(self, login_data):
        return requests.post(url=self.url_login, json=login_data)



